<template>
  <div></div>
</template>

<script setup>
import { onMounted } from 'vue'

const getList = () => {
  setTimeout(() => {
    console.log('发送请求，获取数据')
  }, 2000)
}
getList()

onMounted(() => {
  console.log('mounted生命周期1')
})
onMounted(() => {
  console.log('mounted生命周期2')
})
</script>
